home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1050 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: ix.netcom.com!netnews
  2. From: Nicholas Paldino <np1010@cnsunix.albany.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: Passing commands to a program invoked using a system() call...
  5. Date: Wed, 10 Jan 1996 23:17:13 -0800
  6. Organization: Netcom
  7. Message-ID: <30F4B979.5176@cnsunix.albany.edu>
  8. NNTP-Posting-Host: ix-nyc15-02.ix.netcom.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-NETCOM-Date: Wed Jan 10  8:22:09 PM PST 1996
  13. X-Mailer: Mozilla 2.0b4a (Win95; I; 16bit)
  14.  
  15. Dear comp.lang.c readers,
  16.  
  17.      I am currently trying to write a program which will be a kind of 
  18. launching point for another program called irc.  What I need to know is, 
  19. how can I pass strings to the program irc once it is running?  I have 
  20. tried using fprintf to stdin thinking it would take that as input from 
  21. the keyboard and pass it along to irc but that did not work.  I also 
  22. tried using the system() function again but it passes commands to the 
  23. shell.  I am not sure how to do this.  Irc takes input from the keyboard 
  24. so I thought that writing to stdin would work, but it didnt.  If it helps 
  25. any I am using a gcc compiler on a Unix system.  Any help that can be 
  26. given will be appreciated.  Thanks in advance.
  27.  
  28.                     - Nicholas Paldino
  29.                     - np1010@cnsunix.albany.edu
  30.